#!/usr/bin/env python
#coding=utf-8

import itertools as it

def dropcond(value):
    if value<10:
        return True
    else:
        return False
    
def takecond(value):
    if value<15:
        return True
    else:
        return False

def main():
    result=it.takewhile(takecond,it.dropwhile(dropcond,range(20)))
    for i in result:print i,

if __name__ == '__main__':
    main()
